package cn.aopmin.listener;

import org.springframework.context.event.EventListener;

/**
 *
 * @author 白豆五
 * @since 2025/4/6
 */
// @Component
public class BListener {

    @EventListener
    public void onApplicationEvent(DemoEvent event) {
        if (event.getType() == 2) {
            System.out.println("B收到事件：" + event.getMessage());
        }
    }
}